package javabase.schoolwork.day6_1to3;

/**
 * @author fance
 * @date 2018/6/1 21:16
 */
public class CPU {
    private String brand;
    private long num;
    private String hz;

    public CPU() {
    }

    public CPU(String brand, long num, String hz) {
        this.brand = brand;
        this.num = num;
        this.hz = hz;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public String getHz() {
        return hz;
    }

    public void setHz(String hz) {
        this.hz = hz;
    }

    @Override
    public String toString() {
        return "CPU{" +
                "brand='" + brand + '\'' +
                ", num=" + num +
                ", hz='" + hz + '\'' +
                '}';
    }
    public void cal(){
        System.out.println("cpu 计算...");
    }
}
